<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="./router-link/router.min.css">
</head>

<body>
  <div id="app">
    <router-link to="/">首页</router-link>/
    <router-link to="/about">关于</router-link>
    <hr>
    <router-link to="/message/123">消息123</router-link>/
    <router-link to="/message/456">消息456</router-link>
    <hr>
    
    <hr>
    <router-link to="/user?q=白猫">user白猫</router-link>
    <router-link to="/user?q=黑猫">user黑猫</router-link>
    <hr>
    <router-view></router-view>
  </div>
  <script src="./lib/vue.js"></script>
  <script src="./lib/rooter-link.js"></script>
  <script type="module">
    import { routes } from "./router-link/routes.js";
    let vm = new Vue({
      el: "#app",
      router: new VueRouter({
        routes
      }),
    })
  </script>
</body>

</html>